package com.kkm.pojo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Singer {

  private int id;
  private String name;
  private int sex;
  private String pic;
  private Date birth;
  private String location;
  private String introduction;
  private String sexStr;    //将性别字符串输出
  private String birthStr;  //将时间转成字符串格式输出

  public String getSexStr() {
    if(sex==0){
      return "女";
    }
    return "男";
  }

  public void setSexStr(String sexStr) {
    this.sexStr = sexStr;
  }

  public void setBirth(Date birth) {
    this.birth = birth;
  }

  public String getBirthStr() {
    SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
    return sdf.format(birth);
  }

  public void setBirthStr(String birthStr) {
    this.birthStr = birthStr;
  }

  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public String getName() {
    return name;
  }

  public void setName(String name) {
    this.name = name;
  }

  public int getSex() {
    return sex;
  }

  public void setSex(int sex) {
    this.sex = sex;
  }

  public String getPic() {
    return pic;
  }

  public void setPic(String pic) {
    this.pic = pic;
  }

  public String getLocation() {
    return location;
  }

  public void setLocation(String location) {
    this.location = location;
  }


  public String getIntroduction() {
    return introduction;
  }

  public void setIntroduction(String introduction) {
    this.introduction = introduction;
  }

}
